package com.ym.medical.domain.entity;

import com.ym.common.constant.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.persistence.Table;
import java.util.Date;

/**
 * 评论回复表对象 comment_reply
 *
 * @author ym
 * @date 2020-08-24
 */
@ApiModel("评论回复表-实体")
@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
@Table(name = "comment_reply")
public class CommentReplyEntity extends BaseEntity {

	private static final long serialVersionUID = 1L;

	/**
	 * 用户(评论者)ID
	 */
	@ApiModelProperty("用户(评论者)ID")
	private Long userId;

	/**
	 * 被评论ID
	 */
	@ApiModelProperty("被评论ID")
	private Long answerId;

	/**
	 * 被回复ID(父级节点ID)
	 */
	@ApiModelProperty("被回复ID(父级节点ID)")
	private Long commentId;

	/**
	 * 审核(00-待审核 01-通过 02-不通过)
	 */
	@ApiModelProperty("审核(00-待审核 01-通过 02-不通过)")
	private String auditStatus;

	/**
	 * 回复内容
	 */
	@ApiModelProperty("回复内容")
	private String content;

	/**
	 * 点赞数
	 */
	@ApiModelProperty("点赞数")
	private Integer praseCount;

	/**
	 * 回复时间
	 */
	@ApiModelProperty("回复时间")
	private Date createTime;

	/**
	 * 更新时间
	 */
	@ApiModelProperty("更新时间")
	private Date updateTime;

}
